<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="avicit.platform6.core.locale.PlatformLocalesJSTL"%>
<%@page import="java.util.Locale"%>
<%@page import="avicit.platform6.api.session.SessionHelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="sec" uri="/WEB-INF/tags/shiro.tld"%>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查询</title>
<base href="<%=ViewUtil.getRequestPath(request)%>">
<%
	Locale locale =SessionHelper.getLocaleByUser(request);
%>
<jsp:include
	page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
<link href="static/css/custom/lantop/css/custom.css" type="text/css"  rel="stylesheet">
<script type="text/javascript">
	var dialogId = "${dialogId}"; //打开页面传递的模块ID
	$(function() {
		document.getElementById('codeType').focus();
	});

	function closeWindow() {
		if (parent != null && parent.$('#' + dialogId) != null) {
			parent.$('#' + dialogId).dialog('close');
		}
	}

	function resetForm() {
		$("#codeType").val("");
		$("#codeName").val("");
	}

	function searchForm() {
		var codeType = $("#codeType").val();
		var codeName = $("#codeName").val();
		parent.searchFieldDataGrid(codeType, codeName);
		closeWindow();
	}
</script>
<style>
	.thead{
		text-align:right;
	}
</style>
</head>
<body class="easyui-layout" data-options="region:'center'" fit="true">
	<div region="center" border="false" style="height: 0; overflow: hidden; border: false;">
		<table class="table_init" style="width:80%;">
			<tr>
				<sec:accesscontrollist hasPermission="3"
					domainObject="commtempletmanager_comm_sys_code_search_codeType">
					<%-- 代码类型 --%>
					<td width="20%" class="thead"><span class=""></span><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.generalCodeTable.button.quote.button.search.codeType","i18n.lantop",locale)%></td>
					<td width="30%"><input class="easyui-validatebox" title='<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.generalCodeTable.button.quote.button.search.codeType","i18n.lantop",locale)%>' type="text"
						name="codeType" id="codeType"></input></td>
				</sec:accesscontrollist>
			</tr>
			<tr>
				<sec:accesscontrollist hasPermission="3"
					domainObject="commtempletmanager_comm_sys_code_search_codeName">
					<%-- 代码名称 --%>
					<td width="20%" class="thead"><span class=""></span><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.generalCodeTable.button.quote.button.search.codeName","i18n.lantop",locale)%></td>
					<td><input class="easyui-validatebox" title='<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.generalCodeTable.button.quote.button.search.codeName","i18n.lantop",locale)%>' type="text"
						name="codeName" id="codeName"></input></td>
				</sec:accesscontrollist>
			</tr>
		</table>
	</div>
	<div data-options="region:'south',border:false" style="height: 40px;">
		<div id="toolbar">
			<table class="tableForm" border="0" cellspacing="1" width="100%">
				<tr>
					<td align="center">
						<sec:accesscontrollist hasPermission="3"
							domainObject="commtempletmanager_comm_sys_code_search_button_saveButton">
							<%-- 查询 --%>
							<a id="searchForm" class="easyui-linkbutton selbtnc" iconCls="icon-im-save"
							onclick="searchForm();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.generalCodeTable.button.quote.button.search.button.search","i18n.lantop",locale)%></a>
						</sec:accesscontrollist>
						<sec:accesscontrollist hasPermission="3"
							domainObject="commtempletmanager_comm_sys_code_search_button_resetButton">
							<%-- 重置 --%>
							<a id="resetButton" class="easyui-linkbutton selbtnc" iconCls="icon-im-save"
								onclick="resetForm();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.generalCodeTable.button.quote.button.search.button.reset","i18n.lantop",locale)%></a>
						</sec:accesscontrollist>
						<sec:accesscontrollist hasPermission="3"
							domainObject="commtempletmanager_comm_sys_code_search_button_backButton">
							<%-- 返回 --%>
							<a id="backButton" class="easyui-linkbutton selbtnc" iconCls="icon-im-back"
								onclick="closeWindow();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.referenceTemplateDefine.generalCodeTable.button.quote.button.search.button.return","i18n.lantop",locale)%></a>
						</sec:accesscontrollist>
					</td>
				</tr>
			</table>
		</div>
	</div>
</body>
</html>